#ifndef CACHELISTMANAGER_H
#define CACHELISTMANAGER_H

#include "Entity/Cache.h"
#include "api/systemMonitor/cachelistapi.h"
#include <QObject>
#include <Utils.h>
#include <ui_index.h>
#include <QObject>

class CacheListManager : public QObject
{
    Q_OBJECT
public:
    explicit CacheListManager(Ui::Index *ui,QObject *parent = nullptr);

signals:

private:
    Ui::Index *ui;
    Utils utils;
    QList<Cache> cacheList;
    CacheListApi api;
    QString cacheName;
    QDialog *copyDlg;

    void init();
    void initKeyListTable(const QString &cacheName);
    void initCacheContent(const QString &cacheName,const QString &cacheKeyName);
    void initCacheListTable();
    bool eventFilter(QObject *obj, QEvent *event);
};

#endif // CACHELISTMANAGER_H
